From 28c7ad3ace772a003e5e6e035f9a174db52db58e Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Sat, 21 Oct 2017 12:17:26 +0200 Subject: [PATCH] Don't build the gui on [!amd64 arm64 armhf i386 mipsel] The recent qtwebengine is not available on all architectures. Closes: #877808 Thanks: Adrian Bunk --- debian/control | 6 ++++-- debian/rules | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index 12f6724de..e5995e81b 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,9 @@ Build-Depends: debhelper (>= 10~), quilt, libexpat1-dev, expat, help2man, libxml2-utils, libusb-dev, zlib1g-dev, - qtbase5-dev, qtwebengine5-dev, qttools5-dev-tools, + qtbase5-dev, + qtwebengine5-dev [amd64 arm64 armhf i386 mipsel], + qttools5-dev-tools, imagemagick, locales-all Build-Depends-Indep: fop [!mips], xsltproc, docbook-xml, @@ -67,7 +69,7 @@ Description: GPS file conversion plus transfer to/from GPS units This package contains the detailed documentation of gpsbabel. Package: gpsbabel-gui -Architecture: any +Architecture: amd64 arm64 armhf i386 mipsel Depends: ${shlibs:Depends}, ${misc:Depends}, gpsbabel (= ${binary:Version}) Description: GPS file conversion plus transfer to/from GPS units - GUI GPSBabel converts waypoints, tracks, and routes from one format to diff --git a/debian/rules b/debian/rules index 1cfa61498..5a3d77f16 100755 --- a/debian/rules +++ b/debian/rules @@ -60,7 +60,11 @@ debian/gpsbabel.1: build-stamp ./gpsbabel gui/Makefile: $(QUILT_STAMPFN) - cd gui && qmake + set -e; cd gui; if dpkg -s qtwebengine5-dev; then \ + qmake; \ + else \ + echo -e '#!/usr/bin/make -f\n\n%:\n\techo $$@' > Makefile ; \ + fi debian/gpsbabel.xpm: gui/images/appicon.png convert -resize 32x32 $< $@ @@ -99,7 +103,7 @@ endif build-gui: build-gui-stamp build-gui-stamp: gui/Makefile - $(MAKE) gui + if dpkg -s qtwebengine5-dev; then $(MAKE) gui; fi touch $@ clean: clean-patched unpatch -- 2.30.2